<?php

function __autoload($class_name) {
	require_once ( "./$class_name.class.php" );
}

echo "<pre>";
$ft=Facture::load("f1");
#echo $ft;
$ft2=clone($ft);

#echo $ft;
if ($ft == $ft2) {
	echo "\nPareil";
} else {
	echo "\npas pareil";
}

if ($ft === $ft2) {
	echo "\nObjet Pareil";
} else {
	echo "\nObjet pas pareil";
}
Facture::save("f2", $ft2);

$ft3=Facture::load("f2");
#echo $ft3;

exit(0);


?>